import { Controller, Get ,Inject } from '@nestjs/common';
import { AppService } from './app.service';
import { UserService } from './user/user.service'

@Controller()
export class AppController {
  //属性装饰器
  constructor(readonly appService: AppService,  // @Inject('Test') private readonly shop: string[], 
  private readonly UserService: UserService     // @Inject('CCC') private readonly ccc: string
  ){}  


  //localhost:3000
  @Get()
  getHello(): string {
    return this.appService.getHello()
  }
  
}
